package com.framework.Module.flow.flowwhere;

import com.framework.Table.Table;
import com.framerock.db.DBConn;
import com.framerock.baselib.Rock;

public class Tableflowwhere extends  Table{
  
    protected void initTable() {
        this.tablename   = "flowwhere";
        this.tablenamesm = "模块条件";

        //添加的模块列表里
        this.flowsetMap  = Rock.getMap(new String[]{
             "type", "系统",
             "sort", "903",
             "isxt", "1",
             "sortdir", "sort"
        });
        this.addfields("modeid", "int(11)", "0", "对应模块", new String[]{
                "isbt","1",
                "islb","0",
                "attr","readonly"
        });
        this.addfields("name", "varchar(100)", "", "名称", new String[]{
        		"isbt","1",
        		"isss","1",
                "iseditlx","2",
        });
        this.addfields("num", "varchar(50)", "", "编号@@", new String[]{
                "isbt","1",
                "attr","onlyen",
                "iseditlx","0",
        });
        this.addfields("where", "varchar(500)", "", "条件@@写主表上的SQL条件不写就全部", new String[]{
                "islb","1",
                "fieldstype","textarea",
                "isalign","1"
        });
        this.addfields("pnum", "varchar(50)", "", "分组编号@@根据分组显示列表页选择卡", new String[]{
                "isbt","0",
                "attr","onlyen noint len2",
                "iseditlx","2",
        });
        this.addfields("islb", "tinyint(1)", "1", "列表页@@显示在列表页里", new String[]{
                "zdsm","在列表页中显示此条件用来切换选择",
                "iseditlx","2",
        });
        this.addfields("status", "tinyint(1)", "1", "状态@0|停用|gray,1|启用|green@启用条件", new String[]{
                "ispx","1",
                "fieldstype", "checkbox",
                "iseditlx","2",
        });
        this.addfields("wtype", "tinyint(1)", "0", "类型@0|条件,1|查看条件,2|编辑条件,3|删除条件@启用条件", new String[]{
                "ispx","1",
                "fieldstype", "select",
        });
        this.addfields("sort", "int(11)", "0", "排序号", new String[]{
                "ispx","1",
                "iseditlx","2",
        });

        this.addfields("modeid", "KEY", "`modeid`", "模块ID索引");
        this.addfields("num", "KEY", "`num`", "编号索引");
    }


}
